
class ImageEffect {
  
    ImageEffect() {
    }

    public static void blend(int ai[], int i, int j, int k) {
        int l = ai.length;
        for (int i1 = 0; i1 < l; i1++) {
            int j1 = 0;
            int k1 = ai[i1] & 0xffffff;
            if (j == k1) {
                j1 = 0;
            } else if (k == k1) {
                j1 = 255;
            } else if (i > 0) {
                j1 = i;
            }
            j1 <<= 24;
            k1 += j1;
            ai[i1] = k1;
        }

    }

    public static void blend(int ai[], int i) {
        blend(ai, i, -1, -1);
    }
}
